<?php

/**
 * alumnoCohorteUnidadFormacion form.
 *
 * @package    sistema_itec_new
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class alumnoCohorteUnidadFormacionForm extends BasealumnoCohorteUnidadFormacionForm
{
  public function configure()
  {      
      
      $this->widgetSchema['alumno_id'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['unidad_formacion_id'] = new sfWidgetFormChoice(array('choices' => array(0 => 'Seleccionar')), array('class' => 'select_udef'));
      $this->widgetSchema['cohorte_id'] = new sfWidgetFormDoctrineChoice(array('model' => 'Cohorte'), array('class' => 'select_coho')); //sfWidgetFormChoice(array('choices' => array(0 => 'Seleccionar')), array('class' => 'select_coho'));
      $this->widgetSchema['cohorte_unidad_formacion_id'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['motivo_eleccion'] = new sfWidgetFormTextArea(array(), array('style' => 'width: 96%;', 'maxlength' => 255));
      $this->widgetSchema['observaciones'] = new sfWidgetFormTextArea(array(), array('style' => 'width: 96%;', 'maxlength' => 255));
      $this->widgetSchema['fecha_ingreso'] = new sfWidgetFormInputText();
      
      $this->setDefault('cohorte_id', sfConfig::get('app_id_cohorte_actual'));
      
      $this->validatorSchema->setOption('allow_extra_fields', true);
      
  }
  
}
